package com.whfp.coky.api.response

import com.whfp.coky.other.Constants
import java.io.Serializable

open class BaseResult<T>: Serializable{

    val msg: String? = null
    val result: Int = -1
    val data: T? = null

// 默认是1为success,也会出现0和200的情况，需要重写isHttpSuccessfangfa
    fun isSuccess():Boolean{
//        if (data is ListBean<*>){
//            return result == 1
//        }

        return result == Constants.HTTP_OK
    }

}